package com.warm.xss;

import com.warm.xss.anaotation.Xss;
import com.warm.xss.interceptor.XssRouterInterceptor;
import com.warm.xss.validator.XssValidator;
import lombok.extern.slf4j.Slf4j;
import org.noear.solon.core.AppContext;
import org.noear.solon.core.Plugin;
import org.noear.solon.validation.ValidatorManager;

/**
 * redis缓存插件
 *
 * @author warm
 */
@Slf4j
public class XPluginImpl implements Plugin {
    @Override
    public void start(AppContext context) {
        context.beanMake(XssRouterInterceptor.class);
        ValidatorManager.register(Xss.class, new XssValidator());
        log.debug("warm插件加载: 成功加载[web处理]插件");
    }
}
